import React, { Component } from 'react';
import {
    Platform,
    StyleSheet,
    Text,
    View,
    Button
} from 'react-native';
import {
	observer,
	inject //注入
} from 'mobx-react'
@inject('appState')
@observer
export default class Page2 extends Component {
    render(){
        const {navigation} = this.props;
        return (
            <View>
                <Text>欢迎来到未来Page2</Text>
                <Text>{this.props.appState.userMsg.mark}</Text>
                <Button
                    title= "滚走"
                    onPress={()=>{
                        navigation.goBack();
                    }}
                />
            </View>
        )
    }
}